home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 104 / MacAddict_104_2005-04.iso / Software / Internet & Communication / WordPress 1.2.2 freeware.dmg / wordpress / wp.php < prev    next >
Encoding:
PHP Script  |  2004-05-09  |  2.2 KB  |  49 lines

  1. <?php /* Don't remove this line, it calls the WP function files ! */
  2. $blog=1;
  3. require_once("wp-blog-header.php");
  4. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  5. "http://www.w3.org/TR/xhtml/DTD/xhtml-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8.   <title><?php bloginfo('name') ?><?php single_post_title(' :: ') ?><?php single_cat_title(' :: ') ?><?php single_month_title(' :: ') ?></title>
  9.   <!-- Change charset if needed(?)  But please do not remove this metatag -->
  10.   <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
  11.   <meta name="generator" content="WordPress <?php $wp_version ?>" /> <!-- leave this for stats -->
  12.   <meta http-equiv="reply-to" content="you@somewhere.zzz" />
  13.   <link rel="alternate" type="text/xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" />
  14.   <link rel="alternate" type="text/xml" title="RSS" href="<?php bloginfo('rss2_url'); ?>" />
  15.   <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  16. </head>
  17. <body>
  18. <h1 id="header"><a href="<?php echo get_settings('home'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
  19.  
  20. <!-- // loop start -->
  21. <?php foreach ($posts as $post) { start_wp(); ?>
  22. <?php the_date("d.m.y","<h2>","</h2>"); ?>
  23. <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
  24.  
  25. <?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
  26. <p><em>posted by <strong><?php the_author() ?></strong> @ <a href="<?php the_permalink() ?>"><?php the_time() ?></a></em></p>
  27. <p>Filed under: <?php the_category() ?></p>
  28. <?php comments_popup_link("comments ?", "1 comment", "% comments") ?>
  29.  
  30. <?php include ("wp-comments.php"); ?>
  31.  
  32.  
  33. <!-- // this is just the end of the motor - don't touch that line either :) -->
  34. <?php } ?> 
  35.  
  36. <div align="right"><cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite><br />
  37. <br />
  38. <a href="wp-login.php">login</a><br />
  39. <a href="wp-register.php">register</a></div>
  40.  
  41. <?php
  42. $debug = "1";
  43. if ($debug == "1") {
  44.     echo "<p>$wpdb->querycount queries - ".number_format(timer_stop(),3)." seconds</p>";
  45. }
  46. ?>
  47.  
  48. </body>
  49. </html>